package com.heer.gymnasium.activity;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

import com.heer.gymnasium.R;
import com.heer.gymnasium.adapter.SiteDetailsRechargeAdapter;

import butterknife.BindView;

/**
 * Created by heer on 17/4/13.
 */

public class SiteRechargeActivity extends BaseRefreshActivity {
    @BindView(R.id.list)
    ListView list;

    private SiteDetailsRechargeAdapter mSitesAdapter;

    public static void toRechargeList(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, SiteRechargeActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected void init() {
        super.init();
        setContentView(R.layout.activity_site_more);
    }

    @Override
    protected void initView() {
        super.initView();
        list.setAdapter(mSitesAdapter = new SiteDetailsRechargeAdapter(mContext));
        list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            }
        });
    }

}
